﻿using System.Text;

namespace SocialKit.LightRest
{
    /// <summary>
    /// Defines properties and methods to create request http body.
    /// </summary>
    public interface IHttpContentCreator
    {
        /// <summary>
        /// Gets or sets the encoding used for the request http body.
        /// </summary>
        Encoding ContentEncoding { get; set; }

        /// <summary>
        /// Gets a string value indicates the content type of the request http body.
        /// </summary>
        string ContentType { get; }

        /// <summary>
        /// Create a byte array indicates the request http body.
        /// </summary>
        /// <returns>A byte array.</returns>
        byte[] CreateContent();
    }
}